package com.yztc.orangeentertainment.ui.main.findfragment.findmain;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.LinearLayout;

import com.yztc.orangeentertainment.R;
import com.yztc.orangeentertainment.base.BaseActivity;
import com.yztc.orangeentertainment.config.FindUrlConfig;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by My on 2016/10/15.
 */
public class FindRuleActivity extends BaseActivity {
    @InjectView(R.id.findrule)
    LinearLayout findrule;
    @InjectView(R.id.findrule_wv)
    WebView findruleWv;

    @Override
    public int getLayoutId() {
        return R.layout.find_rule;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
        initData();
    }

    public void initData() {
        //排行规则界面
        findrule.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        findruleWv.loadUrl(FindUrlConfig.FindPath.RULE_URL);
    }
}
